package nku.csc364;

/* Patient.java
 * Raj Kiran Akula
 * CSC 364	
 * 
 * A generic patient class to store patients name, priority,
 * and the date in which the patient was admitted to the 
 * ER room. 
 *
 */

public class Patient{
	String name;  // Name of the Patient in 'lastName, firstName' format
	int priority; // Priority of the Patient in the ER
	String date;  // Date  of the Patient in 'Simple Date Format'
	
	public Patient(String name, int priority, String date){
		setName(name); // Sets name into the patient node
		setPriority(priority); // Sets prority in the patient node
		setDate(date); // Sets the date in the patient node
	}
	
	//Method sets current date
	public void setDate(String date){
		this.date = date; // Sets passed in date of the patient
	}
	
	//Method sets priority
	public void setPriority(int priority){
		this.priority = priority; // Sets passed in priority of the patient
	}
	
	//Method sets name
	public void setName(String name){
		this.name = name; // Sets passed in priority of the patient 
	}
	
	//Method gets date
	public String getDate(){
		return date; // Gets value the patient was admitted into the hospital
	}
	
	//Method gets priority
	public int getPriority(){
		return priority; // Gets value the priority of the patient when admitted to the hospital
	}
	
	//Method gets name
	public String getName(){
		return name; // Gets the name of the patient
	}
	
	//Method to override toString. 
	public String toString(){
		return "Patient Name: " + name  + " Priority: " + priority + " Time: " + date;
	}
}